using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class BatteryShow : MonoBehaviour
{
    public string formatBattery;
    public Text textCompoent;
    public Text networkStatusCompoent;

    // Update is called once per frame
    void Update()
    {
        textCompoent.text = string.Format(formatBattery, ServiceUtils.GetBatteryLevel());
        networkStatusCompoent.text = ServiceUtils.GetNetWorkStatus().ToString();
    }
}
